package com.example.sprintboot.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;


@Data
@TableName("payment")
public class Payment {
    @TableId(value = "payment_id",type = IdType.AUTO)
    private Integer paymentId;
    @TableField("order_id")
    private Integer orderId;
    private BigDecimal amount;
    @TableField("status")
    private String status; // PENDING, SUCCESS, FAILED
    @TableField("pay_method")
    private String payMethod;
    @TableField("transaction_id")
    private String transactionId;
    @TableField("create_time")
    private LocalDateTime createTime;
    @TableField("pay_time")
    private LocalDateTime payTime;
}
